/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package DBLayer;

import ModelLayer.Supplier;
import java.util.ArrayList;

/**
 *
 * @author Henrik
 */
public interface IFDBSupplier {
    //get all suppliers
    public ArrayList<Supplier> getAllSuppliers(boolean retrieveAssociation);
    //get one supplier
    public Supplier findSupplierById(int id, boolean retrieveAssociation);
    public Supplier findSupplierByName(String name, boolean retrieveAssociation);

    //insert a new supplier
    public int insertSupplier(Supplier supplier);
    //update information about a supplier
    public int updateSupplier(Supplier supplier);
    //delete supplier
    public int deleteSupplier(int id);

}
